package com.xiaoy;

import java.util.Date;
import java.util.List;

import org.springside.modules.orm.Page;

import com.google.common.collect.Lists;
import com.xiaoy.core.base.security.user.entity.User;
import com.xiaoy.page.PageWrapper;
import com.xiaoy.util.json.JSONUtils;

public class Test {
	
	public static void main(String[] args) {
		Page page = new PageWrapper(12);
		List<User> users = Lists.newArrayList();
		for (int i=1;i<2;i++) {
			User u = new User(i,"name"+i);
			u.setCreateDate(new Date());
			users.add(u);
		}
		page.setResult(users);
		
		String re = JSONUtils.toJson(page);
		System.out.println(re);
		
		
	}

}


